what is an association? § the target tool

 

 

What is an association?

An association makes a pair of properties (on two different parts) equal. For instance in the case below a  number part has been associated with the orientation of a picture part.

 

 

In fact the association is between the Value property of the number part and the Orientation property of the picture.

 

 

Parts and properties

 

Every part has a host of properties. Those properties that most reflect a part's use or define that part will be familiar to you since they appear in the properties pane for the part.

 

Other properties of a part may be made available for association in order to extend the use of the part in Crocodile Chemistry. Properties in this category might include:

 

  • x coordinate

  • y coordinate

  • orientation

...and so on

 

 

 

 

The target tool

For some parts, an association is central to their function. For instance the number part would not be very interesting if it were not controlling some property value in the scene. Parts such as this have a target tool on them which allows you to set up an association.

 

The standard target tool

 

The standard target tool looks as follows.

 

 

To target a particular part:

 

  1. Click on the target image and drag the target line to the part.

 

  1. When the cursor is over a part with which the source part can associate, the target line will go from dashed to solid and the cursor will change to a target.

 

  1. Release the mouse button when the desired part has been targeted. The standard icon of the newly associated part will appear instead of the target image on the target tool.

 

 

Once you have targeted a part, the standard target tool allows you to choose a property with which to associate.

 

To choose a target property:

  1. Click on Property on the target tool. A menu will appear that contains all the properties owned by the target part with which you may associate.

  2. Click on the property with which you wish to associate.

  3. You will see that the property you have chosen now replaces the Property entry on the target tool and the association is complete.

 

The simple target tool

 

The simple target tool looks as follows:

 

 

Some parts require a very specific association in which the property to be associated is already defined and all that is left for you to do is to target a part.

 

In these cases all you need do is follow the steps outlined above under 'To target a particular part'.

 

 

 

 

 

Related Topics